period boundary handling modified in build.py, interp.py