added timeout class to fix frontend timeout