fixes issue 14, add region filtering