fix resource not included / proper read of resource