added scrounger switches and made code work with laptop