added config check