adjust some settings and main file to get it work