striped down - and obviously tmp broken