handles getorders attribute correctly