[WIP] refactor local build process


 - [x] #146 
 - [x] #73
 - [ ] #81
 - [ ] #132