added circuits stuff