added config checks