added get resource and not found exception