cleaned up, used sane file- and functionnames. does not compile. @Brandon you said you wanted to getopt parameters for the scope settings. get cracking ;O) IO is mapped, you could reuse much of the acquire tool's code