added checking for alternative way of importing functions