ticket:6 add check for input arg types