fixed some pause bugs, still not working 100%