set api ok

	modified:   lib/api.js
	modified:   lib/app.js
	modified:   lib/generate.js