added headers to response
changed logs to linked list