added guard for automated testing