added loading bar. stuff