issue #1
fixed css reading
better error showing