add return of true, nil or false, error in case of error