use startdir and srcdir if already defined
more good way to loop