diferrenced global from component session, changed callbacks to promise