Add another condition to prevent serialize from running before deserialzie
Close #140 Use file instead of folder