updated parse input data logic
renamed "input" to "content"
added support for parsing location message