adding guard for automated testing