update and move up one directory