Resolve #39, user provided environment