moved main into main package