add support for manifestdir and manifest