Implementing --passenv feature to solve security weakness (#4)

(squashed commits)