getting ready for rewriting stuff