add conditional for railtie