add script for graphics