Fix #1

rewrote the activate file to work correctly.