added guard for automated testing on the fly