fixes to 'add localmap'