making compatible with  http://code.google.com/p/csrp/