added timeout waiting for amount