SAFE_STRCPY, add stat
DEFINE_MSG takes msg name parameter
All preload functions are supported by protocol
Allow read/write as write
Common open code