moved math and loader into own project