added fn_rootcheck