added some __init__ methods in models