removing the require statements caused problems - not sure why