added preliminary support for region selection