improve handling of cyclic dep errors, add interactive 'debugging' flag