add a proper API for multiple targets