set global variable for playerpath