first rail application