class init helper