move global variables to config.py
add pack samples in filter.py