ARM: cleanup in serial rutines