added singleton pattern for pre baseapplication