use _index access of resources
additionaly save log.txt