fixed a lot of bugs
added hash files back