fixed problem with definition of main entry point