move bikelayer code