the readlink does not work so well in mac, so comment it out