fix requires, and railtie config