Jade, basic registration implementation, some package refactoring