add hint to dir and some small changes