correct use of application:get_application