moved staging to own file