implemented quantmod check and fixed bugs in it hooray