add interactive shell check