API manual for ns2