moved the useful getAbstract function upstream