build as standalone tool