Problem with null pointer exceptions should be solved now