added forgotten init call to start of main