replaced readsfrom with open due to deprecation of the former
dependency on 0.3 (readsfrom deprecated)