prepare spec environment