splitt init script in two scripts