removes secrets, sets env vars
removes secrests require
cleans up main controller