0.2 fixed compile error

added more functions and validation checks