made server use libraries instead of external programs