autodetect indentation level