added sphax support, see diffs for more info