made the staticsite option work properly again, including unit tests