setup basic api