loading from hash