make UI libraries optional