fix bug and add configurable filtering to imports
fixed regex shiz