added recalibrate, fixed #files bug