switched to forward declared struct types int he public API