finally added found a good solution to ugly blacklist check