add basic validation of constructor args