return err in API mehtods