stair fix, delete dead code, file saving