remove unused script, add swap to autoformat, simplify the startup script