first hacked together background processing
merge