move parseInt funcs to common.
Process struct now has functions from members
NOTICE: THIS BREAKS API compatibirities.