changed api directory to max