simplify build config for external apps
update build script