added a $use_all_prefix global variable