modifying activate command for generic environments