started on magnet header and lib