add process
add method to handle pre-final stage. refactor
log result
comple js functions