* use require instead of curl due to path bugs.
* remove global
update scaffold