adding checks for safe on gh