declare plotlyToolboxDir earlier