d'oh! made error() and log() not global anymore