i get the feeling that dropbox is doing the windows crlf thing.
converted the on_str to use the function instead of the string loop.