use env for rapp loading

#174