library + gui fix