added RamIO's constructor