add legacy overlay support

Change-Id: I64041e9199ad01bafb3112ef2059fa503692baa3