debug Makefile, remove strtochar, create handle_error