check for, and assign defer method to the right spot depending on environment.
update release/head with latest
apply newline
remove a couple console.log statements