working on autoCookies function array

TODO: work out the ifs properly and start using it.