add debug mode to autospec