more work on stage5 and library