add check for custom config