restore state from params