unfortunately the if ! defined hack didn't work :(