add keyboard and console options. also normalize line endings