resolved compatibility with thin and verified api_key exists before injecting into rails