fix spec variables to not include 'spec'