temporarily disabled sync_history, general cleanup, turned on histreedit