fix minor bug with order of dependencies, update dist file