call function if called from symlink