integrating production and staging mode