inital working version for review

@jarv @feanil