fix Model mew/delete and thread issues