moving api methods to the prototype to address single user mode bug