david magee worked on the script