adding script and template language options - needs testing/debugging