use MAIN as root of application