rearange files into directories
add consttraints on @target