add file support in partial