update dir output and fix style