remove some debug statements and add some requires