revamped the apis