fixing link tags; misc bug fixes