added hold time
removed double storage of config
adding serialization library