added capability for periodic bcs to run and top of step file