readded htrundf.R