[WIP] Various bug fixs, better set and get user's settings