errors on bad cds
little things
removed bad exec error handling. todo soon
added (possibly non working) variable substitution