hacky server snippet