new api lib almost used everywhere