some snippets i made to help do things in the background and bring the results of the labour to the main queue