added callback to prepare gaston