moving main.m out