added call in 'api' to create config dir