add sync method, add has_one & has_many associations