load bar and cleanup