improved pin init; added board unload; fixed circular depen;