fixed many bugs, many remain and nothing really works yet.