modifications to callback script