added stand-alone and non-stand-alone functionality to the pgl interpreter