clean upp files (removed hrl etc); response handler (record to json)