add check config before template bounding