added option useLinks (defaults to true)