remove cereal port dependency.
improved error handling.