created a src dir and moved all source files into there. simplied the code to show the problem easier