added case insensitive completion and history features