Some bug fixes and reading from settings json

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>