recast logic
commit
trdf
i think its done
refactoring, using char instead of string where its possible