refining main application launcher