updated with some scripts and visualization