modularize helper libs for scripts