dvtm port. Initial commit