reafactor Application to singleton
fix linux and macos versions