workaround for modify hook not supplying modified data