make work with static linking too
record and display byte counts too