#87 add callback to allow loader memory size to be a session variable