add call to allow main functions to generate dart source to a file