add msdfunctions