finish first part of role_check & modify makefile