to complete the mansrtsp.c functions