gotta figure out a better way to do this dist stuff