prepare_API reference fix