add a flag to enable vgm logging and set the vgm filename too
add a flag to enable vgm logging and set the vgm filename too