move out Application class from core folder