reimplemented using SamDB methods