fixed pieces

now directory works