making hardcandy a proper module