added option to follow symbolic links