improved retrieving resources (absolute paths)