fix for api directory