if not hostname force moved to bottom of if statement