added buf2args routine, tested
add deserialize routine