added compass lib