entry and exit configuration functions in main class