modified for pi@home project