fix custom restore
use super.init in class creation