move init code into init subdir