kinda works as clientserver