fix attach bug, limit amount of log display
add rpc debugging option, fix store() arg type