removing the threadpoolexecutor seems to fix the deadlock error
now it kinda works