expand  as environment variables (if it exists) in parents and children