added res, changed to relative path, edited index