improve screen resizing
ytrim whitespace in direction parser