fixed #335 corrected up/down history and improved error message + ignored empty entry