refactor resource input.