implemented phylayer (only tested for byte transfer)