exprot core functions from index.js