small steps forward. still debugging and not working