resource getter fixed