move init inside restart