functions for gridlabd project