move auton to separate file