refactor mk_temp_redmine