switch debugcon to memory api