made astor optional for debugging