added logging to the application