saving process definition to preferences and loading