sim: add framework for declaring init callbacks locally