0.4a-debug, hotfix + optimization for recoding function