fromResource() added