add plug connect/disconnect
fix file increment saving