I think you should start solving basic problems you have, instead of this.
What you do is hide underlying problems and you will never know what problem created an other.
Apparently it is not clear to you that you do not have a full working Osclass. Until your debug.log is free of fatal and "not-found" problems, you can't move on.
And also it is completely useless for anyone to help you more on this. Start from A.