fixed handling of result key... should check for not none, rather than false otherwise 0 value keys get left out