added multi-level ability for APIs