added missing src files for offline build
improved init script