formatted server, made funcs a bit nicer, added a filler for postTransaction