jail and main work