add default ignore_prefix and add extra variable
add tests for ignore_prefix