fixes to _tmp_create and its usage