fix #77 directives in overlays, closes #78