Fix wrong type casting

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
Various config changes

Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>