use withHandle api and fix save to get parentId properly