WIP
refactor($state): move glob builder to common