initial commit refactor of spawn into queen