reorganized code and disabled unfinished devices.