added some back scripting code (STILL NOT PRODUCTIVE)