swapped buffer for string in app-get