changes to make it msp430-like