moved main to package Base