add process.env.STANDALONE support