added config detection