imported into pogo, redesigned according to tango guidelines. improved malfunctions and error handling