clean up require bug