Patch for reading api directory