more simple main function