fix ordering issue by providing the correct require statements