using dist for front-end