reworked rt a bit, started in on PHM
tons of refactoring