write basic interface api for toggling blocks and units