add hlt
small refactor
jr