added compass import for external use