FIXED IT and added config file