always use realpath of file