added compass and api