changed main arglist to include names for layers