fixed require for dist (still need to separate things)