io ports wrapper for c fixed in stage2