added environment support for rappidjs server