support overloaded index access