set application from constructor