fixed requiremets moved all to a global variable