added regression, fixed input file detection, fixed dependency to
unknown declaration