call init when starting via main function