add mark for each file and add error handle for each controller