fix paths & railtie