moved replace and stamp into gear. added default callback to log errors