adds some error handling for wix parse function