add "ready" method for local require