handle stage and prod

closes #9