extended api virtual env;  added standalone demo support.