emit app 'ready' event BEFORE attaching