reactivating prettier dafukt table print and cleanup of code