handle overlay properly when doing install