added compass module support to do