move source dir and debug into global structure