added orientation option to heartbeat API