splitting up files and added automatic load configuration