dev: S-RPC basically working; some cleanup; investigating chain bug