did some refactoring, removed hardcoded dependencies for API key in
server module and moved S3 config to the top