added resourcePathToUri hook