fixed get seed method
many small fixes