hopefully fixed require check