fixed SHM bugs, works now, forgot to implement SHM clock