refactor lua scripts
fix basic filtering
fix string filter