library for elegible api