added critical API; inherit build flags