add authentication support
deal with range arguments correctly