tweaking puma and rails LWRPs to allow custom environments