fixed ordering of require