rename the apis directory to lib