updated code for faster device status update, fix bug Login, filter not done yet