some refactor to support the ready state application immediately after finishing auth process