add the ability to have an 'after connect' script called 'connected'