add the missing useful_api.cpp