added support for storing values into ioc()