tempest updates

updates to the tempest module so that it almost works...