make sure required arguments are given