on was looking for dir instead of val