separating client/common stuff

idk it seemed like a good idea since my style is messy