add cap rails (although it does not seem to be working)