added appdelegate overrides