api sort of working