added basic result handling