added new apis and stuff