refactor into dev and dist directories