fixes #7 add support of null and undefined return types