added init param validation