made init script working