fixes to fog gem, which are in a pull request to fog