cd() seems broken, better parser