init ready refactor