ps:init method added to let app know about instances before first push