optional mapping when adding scripts