adds setActive API