Trying to create indexfile manually, have some errors