added support for running the app #2 - used code from @1j01