serial.sh - move code to config file - for easier testing