manually added server function added. still, NOT TESTED