fixed require for direct run