adding currentops checks

adds checking of current operations to the script.