add dbg option to makefile
add different storage types; fix singleton serialization