auto detect enclosed area seems to work fine now!