improved get entry terms, added error catching, created generic
function, alongside with convenience functions.