local commit
implemented vsm - not fully tested