clean up jars and remove duplicate dependencies