changed usage to include create; added switch statement cases for control