scan user directory for middleware and use it