moving secure and variables to better locs