basic API for targets and isolates