readding missing inputstream parse method