app delegate start in the right place