added trace option