implemented support for rail in blueprint, close #1516