move pieces to library, define editing manager and layer
sort table names