added workarounds for updating values after changing. new values don't reflect immediately. ugly sleep used