using manager apis instead of db queries