added use_codes option