implement g* and g# mappings as well