moved regex to precompile
removed index file lookup