expose spec environment hooks