pass mode to client compile script